package com.pureut.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pureut.order.domain.ProcurementPlan;
import com.pureut.order.domain.ProcurementPlanDetail;
import com.pureut.order.dto.ProcurementPlanDetailDto;
import com.pureut.order.dto.ProcurementPlanDetailViewDto;
import com.pureut.order.vo.PlanReleaseVo;
import com.pureut.order.vo.ProcurementPlanDetailVo;
import com.sale.common.mybatis.core.page.PageQuery;
import com.sale.common.mybatis.core.page.TableDataInfo;

import java.sql.SQLException;
import java.util.List;

/**
 * 采购计划明细service
 */
public interface ProcurementPlanDetailService extends IService<ProcurementPlanDetail> {

    /**
     * 单据明细列表
     */
    TableDataInfo<ProcurementPlanDetailDto> getList(ProcurementPlanDetailVo procurementPlanDetailVo, PageQuery pageQuery);

    /**
     * 计划下达
     */
    boolean planRelease(PlanReleaseVo planReleaseVo) throws Exception;

    /**
     * 计划下达数据回显
     */
    List<ProcurementPlanDetailViewDto> planReleaseView(String ids);
}
